comm
Verified for current stable LTS
Comm Command: Get Lines Only Found In First File And Save To Third File
Use for Get lines only found in first file and save to third file with Comm. Exact CLI syntax to Get lines only found in first file and save to third file using Comm.
When to use this: Use for Get lines only found in first file and save to third file with Comm.
Command Syntax
comm -23 <file1> <file2> > <file1_only> comm -23 <file1> <file2> > <file1_only> Command Breakdown
-23- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to Get lines only found in first file and save to third file using Comm.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Comm Command: Print Lines Unique To Second File Without Sorting
comm -13 <(sort <file1>) <(sort <file2>) Comm Command: Print Only Common Lines Between Two Files comm -12 <file1> <file2> Comm Command: Print Only Common Lines Using Stdin For One File cat <file1> | comm -12 - <file2> Comm Command: Produce Three Columns Of Lines Only In First, Second, And Common comm <file1> <file2> Comm Command: Get Lines Only In First File comm -23 <file1> <file2> > <file1_only>